home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / GMSMTH01.ZIP / INCLUDE / DSPRC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-24  |  1.6 KB  |  86 lines

  1. /*
  2.  
  3.     dsprc.h
  4.  
  5.     Internet: alexad3@icebox.iceonline.com
  6.     Copyright 1995, January 21 by Alec Russell, ALL rights reserved
  7.  
  8.  
  9.     SP demo
  10.  
  11.     show simple demo's, title sequences, etc...
  12.  
  13.     Created - 1995/1/21
  14.  
  15.     History:
  16.         New file
  17.  
  18. */
  19.  
  20. #ifndef DSPRC_INCLUDE
  21. #define DSPRC_INCLUDE 1
  22.  
  23. #include <g_def.h>
  24.  
  25. #define SP_DONE      0x01
  26. #define SP_QUIT      0x02
  27. #define SP_START     0x03
  28. #define SP_BACK      0x04
  29. #define SP_SETSTART  0x05
  30. #define SP_LOAD      0x06
  31. #define SP_X         0x07
  32. #define SP_Y         0x08
  33. #define SP_DX        0x09
  34. #define SP_DY        0x0a
  35. #define SP_SW        0x0b
  36. #define SP_SH        0x0c
  37. #define SP_DW        0x0d
  38. #define SP_DH        0x0e
  39. #define SP_UNTIL     0x0f
  40. #define SP_BEFORE    0x10
  41. #define SP_SETEND    0x11
  42. #define SP_PALETTE   0x12
  43. #define SP_BLACK     0x13
  44. #define SP_FADEIN    0x14
  45. #define SP_FADEOUT   0x15
  46.  
  47.  
  48. #define SP_ST_PROC   0x00
  49. #define SP_ST_UNTIL  0x01
  50. #define SP_ST_BEFORE 0x02
  51. #define SP_ST_DONE   0x03
  52.  
  53. #define SP_TYPE_PBM  0x01
  54. #define SP_TYPE_PKB  0x02
  55. #define SP_TYPE_M13  0x03
  56.  
  57. #define H_PORPORTIONAL 255
  58.  
  59. typedef struct dsprc
  60.    {
  61.    BYTE bm_type;
  62.    short ow, oh;
  63.    short x,y;
  64.    short dx, dy, sw, sh, dh, dw;
  65.    ULONG next_tick;  /* before var */
  66.    short nx, ny;     /* until vars */
  67.    BYTE  status;     /* until or before */
  68.    FARPTR code;
  69.    FARPTR c;
  70.    FARPTR bm;
  71.    }
  72. dsprc_t;
  73.  
  74. typedef struct
  75.    {
  76.    ULONG next_tick;
  77.    dsprc_t far *sp;
  78.    }
  79. sprc_demo_main_t;
  80.  
  81. short show_dsprc(char *fname, char *path);
  82.  
  83. #endif
  84.  
  85. /* ------------------------------ EOF -------------------------------- */
  86.